import http from "../index";

export const getByCompany = (params) =>
  http({
    url: "/api/jdcpg/template/getByCompany?" + params,
    method: "get",
  });

export const getById = (params) =>
  http({
    url: "/api/jdcpg/template/getById?" + params,
    method: "get",
  });

export const deleteById = (params) =>
  http({
    url: "/api/jdcpg/template/delete?" + params,
    method: "get",
  });

export const download = (params) =>
  http({
    url: "/api/jdcpg/template/download?" + params,
    method: "get",
  });

export const setTemplate = (params) =>
  http({
    url: "/api/jdcpg/template/setTemplate?" + params,
    method: "get",
  });

export const setWthtTemplate = (params) =>
  http({
    url: "/api/jdcpg/template/setWthtTemplate?" + params,
    method: "get",
  });
